package bid.dao;

import bid.entity.Department;
import bid.entity.Page;

import java.util.Date;
import java.util.List;

public interface DepartDao {
    public int add(Department ur);

    //2.删
    public int del(long id);

    //3.改
    public int update(Department ur);

    //4.查
    public List<Department> findAll();
    public List<Department> search(int pageNo, int pageSize);
    public Page<Department> paging(int pageNo, int pageSize);

    //5.根据id查
    public Department get(long id);
    public long searchTotal();
}
